Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 2 Aug 2020 08:49:03 +0000 (09:49 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 2 Aug 2020 08:49:03 +0000 (09:49 +0100)
commit583caeb7ddbae36a95a7ff9da2e2e021c3ae6d56
treeb7869181dfcf02828039f03f47cfcfe85c28a1f8
parent5b7e870d2c1f0c28f6afa56e47db12a542fc707f
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp